package com.demo;

import java.util.ServiceLoader;

public class TestApp {
    public static void main(String[] args){
        ServiceLoader<JdkSpiService> a = ServiceLoader.load(JdkSpiService.class);
        System.out.println(".....start........");
        for(JdkSpiService JdkSpiService: a){
            JdkSpiService.say();
        }
        System.out.println(".....end........");
    /*    ThreadLocal<String> b = new ThreadLocal<String>();
        b.set("1233");
*/
           /* ThreadLocal<Integer> integerThreadLocal = new ThreadLocal<Integer>();
            integerThreadLocal.set(1);
        System.out.println("aaa....");
        System.gc();
        try {
            Thread.sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println(integerThreadLocal.get());*/

    }


}
